package smsapi.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.ArrayList;
import java.util.List;

/**
 * 消息响应
 */public class SmsReportResponse {
  @JsonProperty("ApiStatus")
  private String apiStatus = null;

  @JsonProperty("CmdType")
  private String cmdType = null;

  @JsonProperty("Data")
  private List<SmsReport> data = null;

  @JsonProperty("Error")
  private String error = null;
   /**
   * 响应状态
   * @return apiStatus
  **/
  public String getApiStatus() {
    return apiStatus;
  }

  public void setApiStatus(String apiStatus) {
    this.apiStatus = apiStatus;
  }
   /**
   * 请求类型
   * @return cmdType
  **/
  public String getCmdType() {
    return cmdType;
  }

  public void setCmdType(String cmdType) {
    this.cmdType = cmdType;
  }

  public SmsReportResponse data(List<SmsReport> data) {
    this.data = data;
    return this;
  }

  public SmsReportResponse addDataItem(SmsReport dataItem) {
    if (this.data == null) {
      this.data = new ArrayList<SmsReport>();
    }
    this.data.add(dataItem);
    return this;
  }

   /**
   * 发送短信应答 或者短信抵达报告列表 或者上行短信列表
   * @return data
  **/
  public List<SmsReport> getData() {
    return data;
  }

  public void setData(List<SmsReport> data) {
    this.data = data;
  }


   /**
   * 描述信息
   * @return error
  **/
  public String getError() {
    return error;
  }

  public void setError(String error) {
    this.error = error;
  }

}

